import mongoose from "../index";
const aiSchema = new mongoose.Schema(
    {
        userName: { type: String, required: true },

        userId: { type: String, required: true },
        // 图片地址
        url: { type: String, required: true },
        // 图片描述
        desc: { type: String, required: true },
        // 图片宽度
        width: { type: Number, required: true },
        // 图片高度
        height: { type: Number, required: true },
        // 来源
        source: { type: String, required: true },
        // 删除
        del: { type: Boolean, required: true, default: false}
    },
    {
        versionKey: false,
        timestamps: true,
    }
)
const aiModel = mongoose.model('aiImg', aiSchema)

export default aiModel